package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IAlertRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class AlertRuleJob {
    @Autowired
    private IAlertRuleService iAlertRuleService;
    @Scheduled(cron = "0 * * * * ?")
    private void alertRuleDeviceData() {
        iAlertRuleService.AlertRuleDeviceData();
    }
}
